<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<div name="template-img-wrap"  style="width:600px;height:600px;border:1px solid #333;">
		<div name="product-img"><img src="http://ec-image.clientgear.com/production/temp1/556/image/_50b655a7d839410998319c7e94b1a3ea.jpg"></div>
		<div name="tpl-img"><img src="http://ec-image.clientgear.com/production/resourceimg/aaae06a1-d4d3-48b3-9b69-cf62180cbbef.png"></div>
	</div>
	<script src="js/jquery.min.js"></script>
	<script src="js/dragging.js"></script>
	<script>
	window.onload = function(){
		$('div[name=product-img],div[name=tpl-img]').each(function(i){
            $(this).dragging({
                move : 'both',
                restricted : false,
                changeSize : true,
                supportDelete : true,
                reIndex : false,
                border: '1px solid #f5a351'
            });
        });
	}
	</script>
</body>
</html>